﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoTileDesktop
{
    public class KinectJointApp : ITileApp
    {
        public KinectJointApp(ILiveTile liveTile)
        {
            MyTile = liveTile;
        }
        private ILiveTile myTile;
        public ILiveTile MyTile
        {
            get
            {
                return myTile;
            }
            set
            {
                myTile = value;
            }
        }

        public void Start()
        {
        }

        public void SetAreaMotion(int CellHorizontalIndex, int CellVerticalIndex, string state)
        {
            myTile.TBC01R0.FontSize = 32;
            myTile.TBC01R0.Text = state;
            myTile.TBC01R1.FontSize = 32;
            myTile.TBC01R1.Text = String.Format("({0},{1})", CellHorizontalIndex, CellVerticalIndex);
        }
    }
}
